﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebUControl.aspx.cs" Inherits="InnerPages_WebUControl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
            <InfoLight:WebDataSource ID="wdsUser" runat="server" DataMember="userInfo" WebDataSetID="WUser" AutoApply="True">
            </InfoLight:WebDataSource>
            </div>
        <table id="TABLE1" style="width: 1%">
            <tr height="50%">
                <td align="left" colspan="1" rowspan="1" style="width: 1288px; vertical-align: middle;">
                    <InfoLight:WebNavigator ID="wnUser" runat="server" BindingObject="wgvUser" OnCommand="wnUser_Command">
                        <NavStates>
                            <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                                StateText="Initial" />
                            <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                                StateText="Browsed" />
                            <InfoLight:WebNavigatorStateItem EnableControls="OK;Cancel;Apply;Abort" StateText="Inserting" />
                            <InfoLight:WebNavigatorStateItem EnableControls="OK;Cancel;Apply;Abort" StateText="Editing" />
                            <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Applying" />
                            <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                                StateText="Changing" />
                            <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Querying" />
                            <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Printing" />
                        </NavStates>
                        <NavControls>
                            <InfoLight:ControlItem ControlName="First" ControlText="first" ControlType="Image"
                                ControlVisible="True" DisenableImageUrl="../image/uipics/first3.gif" ImageUrl="../image/uipics/first.gif"
                                MouseOverImageUrl="../image/uipics/first2.gif" Size="25" />
                            <InfoLight:ControlItem ControlName="Previous" ControlText="previous" ControlType="Image"
                                ControlVisible="True" DisenableImageUrl="../image/uipics/previous3.gif" ImageUrl="../image/uipics/previous.gif"
                                MouseOverImageUrl="../image/uipics/previous2.gif" Size="25" />
                            <InfoLight:ControlItem ControlName="Next" ControlText="next" ControlType="Image"
                                ControlVisible="True" DisenableImageUrl="../image/uipics/next3.gif" ImageUrl="../image/uipics/next.gif"
                                MouseOverImageUrl="../image/uipics/next2.gif" Size="25" />
                            <InfoLight:ControlItem ControlName="Last" ControlText="last" ControlType="Image"
                                ControlVisible="True" DisenableImageUrl="../image/uipics/last3.gif" ImageUrl="../image/uipics/last.gif"
                                MouseOverImageUrl="../image/uipics/last2.gif" Size="25" />
                            <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                                DisenableImageUrl="../image/uipics/add3.gif" ImageUrl="../image/uipics/add.gif"
                                MouseOverImageUrl="../image/uipics/add2.gif" Size="25" />
                            <InfoLight:ControlItem ControlName="Query" ControlText="query" ControlType="Image"
                                ControlVisible="True" DisenableImageUrl="../image/uipics/query3.gif" ImageUrl="../image/uipics/query.gif"
                                MouseOverImageUrl="../image/uipics/query2.gif" Size="25" />
                            <InfoLight:ControlItem ControlName="Export" ControlText="export" ControlType="Image"
                                ControlVisible="True" DisenableImageUrl="../image/uipics/export3.gif" ImageUrl="../image/uipics/export.gif"
                                MouseOverImageUrl="../image/uipics/export2.gif" Size="25" />
                        </NavControls>
                    </InfoLight:WebNavigator>
            &nbsp;
            <asp:Button ID="btnGetADUser" runat="server" OnClick="btnGetADUser_Click" Text="GetADUser" /></td>
            </tr>
            <tr height="50%">
                <td align="left" colspan="1" dir="ltr" rowspan="1" style="width: 100%; height: 500px;" valign="top">
                    <InfoLight:WebGridView ID="wgvUser" runat="server" AddIndentityField="False" AutoEmptyDataText="False"
                        baseCount="0" ButtonTooltip="" DataHasChanged="False" DataSourceID="wdsUser"
                        EditReturn="True" EditURL="../InnerPages/WebUControlAdd.aspx" ExpressionFieldCount="0" GetServerText="True" GridInserting="False"
                        HeaderStyleWrap="True" InnerNavigatorLinkLabel="" InnerNavigatorShowStyle="Image"
                        MultiCheckColumn="" MultiCheckColumnIndexToTranslate="-1" NeedExecuteAdd="True"
                        OpenEditUrlInServerMode="True" ShowDialog="False" SkipInsert="False" TotalActive="False"
                        TotalCaption="" ValidateFailed="False" WizardDesignMode="False" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" OnRowDeleted="wgvUser_RowDeleted" OpenEditLeft="250" OpenEditTop="250" OpenEditWidth="550">
                        <Columns>
                            <asp:CommandField ButtonType="Image" CancelImageUrl="~/Image/UIPics/Cancel.gif" DeleteImageUrl="~/Image/UIPics/Delete.gif"
                                EditImageUrl="~/Image/UIPics/Edit.gif" SelectImageUrl="~/Image/UIPics/Select.gif"
                                ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" UpdateImageUrl="~/Image/UIPics/OK.gif" />
                            <asp:BoundField DataField="USERID" HeaderText="USERID" SortExpression="USERID" />
                            <asp:BoundField DataField="USERNAME" HeaderText="USERNAME" SortExpression="USERNAME" />
                            <asp:BoundField DataField="PWD" HeaderText="PWD" SortExpression="PWD" Visible="False" />
                            <asp:BoundField DataField="DESCRIPTION" HeaderText="DESCRIPTION" SortExpression="DESCRIPTION" />
                            <asp:BoundField DataField="EMAIL" HeaderText="EMAIL" SortExpression="EMAIL" />
                            <asp:BoundField DataField="MSAD" HeaderText="MSAD" SortExpression="MSAD" />
                            <asp:BoundField DataField="AUTOLOGIN" HeaderText="SYSTEM" SortExpression="AUTOLOGIN" />
                            <asp:BoundField DataField="AGENT" HeaderText="AGENT" SortExpression="AGENT" />
                            <asp:BoundField DataField="CREATEDATE" HeaderText="CREATEDATE" SortExpression="CREATEDATE" />
                        </Columns>
                        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                        <RowStyle BackColor="White" ForeColor="#330099" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <PagerSettings Mode="NumericFirstLast" />
                    </InfoLight:WebGridView>
                </td>
            </tr>
        </table>
            </div>
    </form>
</body>
</html>
